﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace JuCheap.Core.Models.ViewModels
{
    public class DepartmentGroupViewModel
    {
        public int Id { get; set; }
        [Display(Name = "群组名称")]
        [Required(ErrorMessage = Message.Required)]
        public string Name { get; set; }

        /// <summary>
        /// 逗号分隔，如：星期一,星期二,星期日
        /// </summary>
        [Display(Name = "开放周期")]
        public string OpenCycle { get; set; }
        
        public List<HardWareDeviceViewModel> Devices { get; set; }
      
        public List<WorkerViewModel> Workers { get; set; }
      
        public string DevicesText { get; set; }

      
        public string WorkersText { get; set; }
        //[Display(Name = "设备")]
        //[Required(ErrorMessage = Message.Required)]
        //public string DevicesId { get; set; }

        //[Display(Name = "人员")]
        //[Required(ErrorMessage = Message.Required)]
        //public string WorkersId { get; set; }
    }
}
